﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Knight.ObjectFactory
{
    /// <summary>
    /// 对象类型
    /// </summary>
    class ObjectType
    {
        public ObjectType(Type implementType, bool isSingleton)
        {
            this.ImplementType = implementType;
            this.IsSingleton = isSingleton;
        }

        /// <summary>
        /// 实现的对象类型
        /// </summary>
        public Type ImplementType { get; private set; }
        /// <summary>
        /// 是否是单例模式
        /// </summary>
        public bool IsSingleton { get; private set; }
    }
}
